package cn.tedu.tmall.admin.mall.schedule;

import cn.tedu.tmall.admin.mall.service.IGoodService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class SearchSchedule {
    @Autowired
    private IGoodService service;
    @Scheduled(cron = "0 00 1 * * ?")
    public void rebuildSearch(){
        service.rebuildSearch();
    }
}
